#!/usr/bin/env python
#coding:utf-8
import cgi
form = cgi.FieldStorage()
name = form.getfirst('name', 'empty')

name = cgi.escape(name)
print """\
Content-type: text/html

<html><body>
<p>The submitted name was "%s"</p><br />
<a href="/wiki/form/cginame.html">back...</a><br />
</body></html>""" % name
